<?php 
	if(!isset($_SESSION['user']) || $_SESSION['user']->Quyen == '2'){
		header('location:'.__URL_BASE.'index.php?rt=admin_logon');
		exit;
	}
 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Admin Page - ShopTivi</title>
<link href="<?php echo __URL_BASE ?>css/layout.css" rel="stylesheet" type="text/css" />
<link href="<?php echo __URL_BASE ?>css/chosen.css" rel="stylesheet" type="text/css">
<link href="<?php echo __URL_BASE ?>css/tcal.css" rel="stylesheet" type="text/css">
<link href="<?php echo __URL_BASE ?>css/button.css" rel="stylesheet" type="text/css">
<!--<link href="css/onsoftcss.css" rel="stylesheet" type="text/css" />-->
<script src="<?php echo __URL_BASE ?>js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="<?php echo __URL_BASE ?>js/jquery.form.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo __URL_BASE ?>ckeditor/sample.js"></script>
<script type="text/javascript" src="<?php echo __URL_BASE ?>ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo __URL_BASE ?>js/tcal.js"></script>
<script type="text/javascript" src="<?php echo __URL_BASE ?>js/lib.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

  <div id="wrapper">
    <div id="header" class="clearfix">
      <div class="div">
        <table class="table" cellspacing="0" cellpadding="0">
          <tr>
            <td colspan="2" class="logo"> ADMIN PAGE MANAGER </td>
          </tr>
          <tr>
            <td class="left"> Wellcome: <strong><?php if(isset($_SESSION['user'])) { echo $_SESSION['user']->TenDangNhap ;} ?>  </strong> </td>
            <td class="right"> [ <a target="_blank" href="<?php echo __URL_BASE.'trang-chu.html' ?>">Website </a>] &nbsp;  [<a href="<?php echo __URL_BASE ?>index.php?rt=admin_logon/logout">Log out</a> ] </td>
          </tr>
        </table>
      </div>
    </div>
    <div id="main" class="clearfix">
      <table width="100%" border="0" cellspacing="0" class="fix-height">
        <tr>
          <td id="col_left"><table class="table" cellspacing="0" cellpadding="0">
              <tr>
                <td class="left"><img alt="" src="<?php echo __URL_BASE ?>images/blank.gif" /></td>
                <td>Quản lý</td>
                <td class="image"><img alt="" id="imgdiv1" src="<?php echo __URL_BASE ?>images/closed.gif" onclick="toggleXPMenu('div1');" /></td>
                <td class="right"><img alt="" src="<?php echo __URL_BASE ?>images/blank.gif" /> </td>
              </tr>
            </table>
            <div id="div1" class="content" >
              <ul>
			  	<li> <img alt="" src="<?php echo __URL_BASE ?>Images/icon_adv.jpg" /><a href="<?php echo __URL_BASE ?>admin">Trang chủ</a></li>
                <li> <img alt="" src="<?php echo __URL_BASE ?>Images/icon_system.jpg" /><a href="<?php echo __URL_BASE ?>index.php?rt=admin_tivi">Quản lý sản phẩm</a></li>
				<li> <img alt="" src="<?php echo __URL_BASE ?>Images/icon_page.jpg" /><a href="<?php echo __URL_BASE ?>index.php?rt=admin_order">Quản lý hóa đơn</a></li>
                <li> <img alt="" src="<?php echo __URL_BASE ?>Images/icon_user.jpg" /><a href="<?php echo __URL_BASE ?>index.php?rt=admin_user">Quản lý Người dùng</a></li>
                <li> <img alt="" src="<?php echo __URL_BASE ?>Images/icon_adv.jpg" /> <a href="<?php echo __URL_BASE ?>index.php?rt=admin_hangsanxuat">Quản lý hãng sản xuất</a></li>
                <li> <img alt="" src="<?php echo __URL_BASE ?>Images/icon_adv.jpg" /><a href="<?php echo __URL_BASE ?>index.php?rt=admin_loai">Quản lý loại sản phẩm</a></li>
                <li> <img alt="" src="<?php echo __URL_BASE ?>Images/icon_adv.jpg" /> <a href="<?php echo __URL_BASE ?>index.php?rt=admin_phuongthuc">Quản lý phương thức thanh toán</a></li>
				 <li> <img alt="" src="<?php echo __URL_BASE ?>Images/icon_adv.jpg" /><a href="<?php echo __URL_BASE ?>index.php?rt=admin_comment">Quản lý bình luận</a></li>
                <li> <img alt="" src="<?php echo __URL_BASE ?>Images/icon_adv.jpg" /><a href="<?php echo __URL_BASE ?>index.php?rt=admin_support">Hỗ trợ trực tuyến</a></li>
              </ul>
            </div>
            <table class="table" cellspacing="0" cellpadding="0">
              <tr>
                <td class="left"><img alt="" src="<?php echo __URL_BASE ?>Images/blank.gif" /></td>
                <td>Thông tin tài khoản</td>
                <td class="image"><img alt="" id="imgdiv9" src="<?php echo __URL_BASE ?>Images/closed.gif" onclick="toggleXPMenu('div9');"/></td>
                <td class="right"><img alt="" src="<?php echo __URL_BASE ?>Images/blank.gif" /></td>
              </tr>
            </table>
            <div id="div9" class="content">
              <ul>
                <li><img src="<?php echo __URL_BASE ?>Images/icon_pro.jpg"/ alt="" /><a href="<?php echo __URL_BASE ?>index.php?rt=admin_user/profile">Hồ sơ</a></li>
                <li><img src="<?php echo __URL_BASE ?>Images/icon_pro.jpg"/ alt="" /><a href="<?php echo __URL_BASE ?>index.php?rt=admin_user/change_password">Đổi mật khẩu</a></li>
              </ul>
            </div>
            <div class="Powered_by">Powered by :LUA_HTTT_K50</div></td>
<td id="col_right"><div style="width:95%;padding:20px;">